package com.jxdinfo.hussar.base.cloud.feign;

import com.jxdinfo.hussar.base.cloud.model.client.SysAuthClientModel;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;
import com.jxdinfo.hussar.platform.core.support.service.dto.ClientModelDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "RemoteClientDetailsService", value = "${hussar-remote-server.base.name:hussar-web}",
        url = "${hussar-remote-server.base.url:}")
public interface RemoteClientDetailsService {

    /**
     * 根绝clientId 查询客户端信息
     * **/
    @GetMapping("/cloudClient/getClientModelByClientId")
    ApiResponse<ClientModelDetails> getClientModelByClientId(@SpringQueryMap SysAuthClientModel sysAuthClientModel);
}
